﻿namespace ACCOUNTING
{
    using ACCOUNTING.LVY.Business;
    using ACCOUNTING.My.Resources;
    using Microsoft.VisualBasic;
    using Microsoft.VisualBasic.CompilerServices;
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Diagnostics;
    using System.Drawing;
    using System.Runtime.CompilerServices;
    using System.Windows.Forms;

    [DesignerGenerated]
    public class Frm_KetChuyenSoDu : Form
    {
        private static List<WeakReference> __ENCList = new List<WeakReference>();
        [AccessedThroughProperty("CKCongNo")]
        private CheckBox _CKCongNo;
        [AccessedThroughProperty("CKKyGoi")]
        private CheckBox _CKKyGoi;
        [AccessedThroughProperty("CKSoDuTaiKhoan")]
        private CheckBox _CKSoDuTaiKhoan;
        [AccessedThroughProperty("CKSoDuTonKho")]
        private CheckBox _CKSoDuTonKho;
        [AccessedThroughProperty("CmdCancel")]
        private Button _CmdCancel;
        [AccessedThroughProperty("CmdOK")]
        private Button _CmdOK;
        [AccessedThroughProperty("GroupBox1")]
        private GroupBox _GroupBox1;
        [AccessedThroughProperty("Label1")]
        private Label _Label1;
        [AccessedThroughProperty("Label4")]
        private Label _Label4;
        [AccessedThroughProperty("updNam")]
        private NumericUpDown _updNam;
        [AccessedThroughProperty("UpdNamDich")]
        private NumericUpDown _UpdNamDich;
        [AccessedThroughProperty("updThang")]
        private NumericUpDown _updThang;
        [AccessedThroughProperty("updThangDich")]
        private NumericUpDown _updThangDich;
        private IContainer components;
        private bool mAllowAdd;
        private bool mAllowDel;
        private bool mAllowEdit;
        private bool mAllowView;

        [DebuggerNonUserCode]
        public Frm_KetChuyenSoDu()
        {
            base.Load += new EventHandler(this.Frm_KeChuyenSoDu_Load);
            List<WeakReference> list = __ENCList;
            lock (list)
            {
                __ENCList.Add(new WeakReference(this));
            }
            this.InitializeComponent();
        }

        public bool ChuyenSoDuCanDoi()
        {
            bool flag=false;
            IDataParameter[] commandParameters = new IDataParameter[3];
            string left = Conversions.ToString(this.updNam.Value) + LVYModule.sRight("00" + Conversions.ToString(this.updThang.Value), 2);
            string right = Conversions.ToString(this.UpdNamDich.Value) + LVYModule.sRight("00" + Conversions.ToString(this.updThangDich.Value), 2);
            try
            {
                while (Microsoft.VisualBasic.CompilerServices.Operators.CompareString(left, right, false) < 0)
                {
                    commandParameters[0] = DBHelper.createParameter("@NamThang", DbType.Int64, ParameterDirection.Input, left);
                    commandParameters[1] = DBHelper.createParameter("@KhoaDonVi", DbType.Int64, ParameterDirection.Input, modGeneral.H_CLIENT);
                    commandParameters[2] = DBHelper.createParameter("@pError", DbType.Double, ParameterDirection.Output, 0);
                    DBHelper.ExecuteNonQuery(modGeneral.ConnectionString, CommandType.StoredProcedure, "GL_sp_KetChuyenCanDoi", commandParameters);
                    if (Microsoft.VisualBasic.CompilerServices.Operators.ConditionalCompareObjectNotEqual(commandParameters[2].Value, 0, false))
                    {
                        LVYModule.ShowWarning(modGeneral.Tranlated("Nghiệp vụ kh\x00f4ng thực hiện th\x00e0nh c\x00f4ng", ""));
                        return false;
                    }
                    left = this.NamThangSau(left);
                }
                flag = true;
            }
            catch (Exception exception1)
            {
                ProjectData.SetProjectError(exception1);
                Exception exception = exception1;
                MessageBox.Show(exception.Message);
                flag = false;
                ProjectData.ClearProjectError();
                return flag;
                ProjectData.ClearProjectError();
            }
            return flag;
        }

        public bool ChuyenSoDuCongNo()
        {
            bool flag=false;
            IDataParameter[] commandParameters = new IDataParameter[3];
            string left = Conversions.ToString(this.updNam.Value) + LVYModule.sRight("00" + Conversions.ToString(this.updThang.Value), 2);
            string right = Conversions.ToString(this.UpdNamDich.Value) + LVYModule.sRight("00" + Conversions.ToString(this.updThangDich.Value), 2);
            try
            {
                while (Microsoft.VisualBasic.CompilerServices.Operators.CompareString(left, right, false) < 0)
                {
                    commandParameters[0] = DBHelper.createParameter("@NamThang", DbType.Int64, ParameterDirection.Input, left);
                    commandParameters[1] = DBHelper.createParameter("@KhoaDonVi", DbType.Int64, ParameterDirection.Input, modGeneral.H_CLIENT);
                    commandParameters[2] = DBHelper.createParameter("@pError", DbType.Double, ParameterDirection.Output, 0);
                    DBHelper.ExecuteNonQuery(modGeneral.ConnectionString, CommandType.StoredProcedure, "GL_sp_KetChuyenCongNo", commandParameters);
                    if (Microsoft.VisualBasic.CompilerServices.Operators.ConditionalCompareObjectNotEqual(commandParameters[2].Value, 0, false))
                    {
                        LVYModule.ShowWarning(modGeneral.Tranlated("Nghiệp vụ kh\x00f4ng thực hiện th\x00e0nh c\x00f4ng", ""));
                        return false;
                    }
                    left = this.NamThangSau(left);
                }
                flag = true;
            }
            catch (Exception exception1)
            {
                ProjectData.SetProjectError(exception1);
                Exception exception = exception1;
                MessageBox.Show(exception.Message);
                flag = false;
                ProjectData.ClearProjectError();
                return flag;
                ProjectData.ClearProjectError();
            }
            return flag;
        }

        public bool ChuyenSoDuHangKyGui()
        {
            bool flag=false;
            IDataParameter[] commandParameters = new IDataParameter[3];
            string left = Conversions.ToString(this.updNam.Value) + LVYModule.sRight("00" + Conversions.ToString(this.updThang.Value), 2);
            string right = Conversions.ToString(this.UpdNamDich.Value) + LVYModule.sRight("00" + Conversions.ToString(this.updThangDich.Value), 2);
            try
            {
                while (Microsoft.VisualBasic.CompilerServices.Operators.CompareString(left, right, false) < 0)
                {
                    commandParameters[0] = DBHelper.createParameter("@NamThang", DbType.Int64, ParameterDirection.Input, left);
                    commandParameters[1] = DBHelper.createParameter("@KhoaDonVi", DbType.Int64, ParameterDirection.Input, modGeneral.H_CLIENT);
                    commandParameters[2] = DBHelper.createParameter("@pError", DbType.Double, ParameterDirection.Output, 0);
                    DBHelper.ExecuteNonQuery(modGeneral.ConnectionString, CommandType.StoredProcedure, "GL_sp_KetChuyenSoDuHangKyGui", commandParameters);
                    if (Microsoft.VisualBasic.CompilerServices.Operators.ConditionalCompareObjectNotEqual(commandParameters[2].Value, 0, false))
                    {
                        LVYModule.ShowWarning(modGeneral.Tranlated("Nghiệp vụ kh\x00f4ng thực hiện th\x00e0nh c\x00f4ng", ""));
                        return false;
                    }
                    left = this.NamThangSau(left);
                }
                flag = true;
            }
            catch (Exception exception1)
            {
                ProjectData.SetProjectError(exception1);
                Exception exception = exception1;
                MessageBox.Show(exception.Message);
                flag = false;
                ProjectData.ClearProjectError();
                return flag;
                ProjectData.ClearProjectError();
            }
            return flag;
        }

        public bool ChuyenSoDuTonKho()
        {
            bool flag=false;
            IDataParameter[] commandParameters = new IDataParameter[3];
            string left = Conversions.ToString(this.updNam.Value) + LVYModule.sRight("00" + Conversions.ToString(this.updThang.Value), 2);
            string right = Conversions.ToString(this.UpdNamDich.Value) + LVYModule.sRight("00" + Conversions.ToString(this.updThangDich.Value), 2);
            try
            {
                while (Microsoft.VisualBasic.CompilerServices.Operators.CompareString(left, right, false) < 0)
                {
                    commandParameters[0] = DBHelper.createParameter("@NamThang", DbType.Int64, ParameterDirection.Input, left);
                    commandParameters[1] = DBHelper.createParameter("@KhoaDonVi", DbType.Int64, ParameterDirection.Input, modGeneral.H_CLIENT);
                    commandParameters[2] = DBHelper.createParameter("@pError", DbType.Double, ParameterDirection.Output, 0);
                    DBHelper.ExecuteNonQuery(modGeneral.ConnectionString, CommandType.StoredProcedure, "GL_sp_KetChuyenSoDuTonKho", commandParameters);
                    if (Microsoft.VisualBasic.CompilerServices.Operators.ConditionalCompareObjectNotEqual(commandParameters[2].Value, 0, false))
                    {
                        LVYModule.ShowWarning(modGeneral.Tranlated("Nghiệp vụ kh\x00f4ng thực hiện th\x00e0nh c\x00f4ng", ""));
                        return false;
                    }
                    left = this.NamThangSau(left);
                }
                flag = true;
            }
            catch (Exception exception1)
            {
                ProjectData.SetProjectError(exception1);
                Exception exception = exception1;
                MessageBox.Show(exception.Message);
                flag = false;
                ProjectData.ClearProjectError();
                return flag;
                ProjectData.ClearProjectError();
            }
            return flag;
        }

        private void CmdOK_Click(object sender, EventArgs e)
        {
            this.Cursor = Cursors.WaitCursor;
            string left = Conversions.ToString(this.updNam.Value) + LVYModule.sRight("00" + Conversions.ToString(this.updThang.Value), 2);
            string right = Conversions.ToString(this.UpdNamDich.Value) + LVYModule.sRight("00" + Conversions.ToString(this.updThangDich.Value), 2);
            string str3 = LVYModule.sLeft(modGeneral.H_FIRSTDAY, 6);
            if (Microsoft.VisualBasic.CompilerServices.Operators.CompareString(left, str3, false) < 0)
            {
                LVYModule.ShowWarning(modGeneral.Tranlated("Th\x00e1ng kết chuyển kh\x00f4ng được nhỏ hơn", "") + " " + LVYModule.sRight(str3, 2) + "/" + LVYModule.sLeft(str3, 4));
            }
            else if (Microsoft.VisualBasic.CompilerServices.Operators.CompareString(left, right, false) >= 0)
            {
                LVYModule.ShowWarning(modGeneral.Tranlated("Th\x00e1ng bắt đầu kết chuyển phải nhỏ hơn th\x00e1ng kết chuyển tới.", ""));
            }
            else if ((((this.CKSoDuTaiKhoan.CheckState != CheckState.Checked) || this.ChuyenSoDuCanDoi()) && ((this.CKSoDuTonKho.CheckState != CheckState.Checked) || this.ChuyenSoDuTonKho())) && (((this.CKCongNo.CheckState != CheckState.Checked) || this.ChuyenSoDuCongNo()) && ((this.CKKyGoi.CheckState != CheckState.Checked) || this.ChuyenSoDuHangKyGui())))
            {
                this.Cursor = Cursors.Default;
                LVYModule.ShowWarning(modGeneral.Tranlated("Nghiệp vụ thực hiện th\x00e0nh c\x00f4ng", ""));
            }
        }

        [DebuggerNonUserCode]
        protected override void Dispose(bool disposing)
        {
            if (disposing && (this.components != null))
            {
                this.components.Dispose();
            }
            base.Dispose(disposing);
        }

        private void Frm_KeChuyenSoDu_Load(object sender, EventArgs e)
        {
            this.Cursor = Cursors.WaitCursor;
            LVYModule.GetUserRight(ref this.mAllowView, ref this.mAllowDel, ref this.mAllowEdit, ref this.mAllowAdd, Conversions.ToString(this.Tag), modGeneral.H_USERNAME);
            if (!this.mAllowView)
            {
                LVYModule.ShowWarning(modGeneral.Tranlated("Bạn kh\x00f4ng c\x00f3 quyền sử dụng chức năng n\x00e0y, li\x00ean hệ với người quản trị để biết th\x00eam chi tiết.", ""));
                this.Dispose();
            }
            else
            {
                this.updThang.Value = new decimal(DateAndTime.Month(DateAndTime.Today));
                this.updNam.Value = new decimal(DateAndTime.Year(DateAndTime.Today));
                if (decimal.Compare(this.updThang.Value, decimal.One) == 0)
                {
                    this.updThang.Value = 12M;
                    this.updNam.Value = decimal.Subtract(this.updNam.Value, decimal.One);
                }
                else
                {
                    this.updThang.Value = decimal.Subtract(this.updThang.Value, decimal.One);
                }
                this.updThangDich.Value = new decimal(DateAndTime.Month(DateAndTime.Today));
                this.UpdNamDich.Value = new decimal(DateAndTime.Year(DateAndTime.Today));
                this.Cursor = Cursors.Default;
            }
        }

        [DebuggerStepThrough]
        private void InitializeComponent()
        {
            ComponentResourceManager manager = new ComponentResourceManager(typeof(Frm_KetChuyenSoDu));
            this.updNam = new NumericUpDown();
            this.Label1 = new Label();
            this.updThang = new NumericUpDown();
            this.GroupBox1 = new GroupBox();
            this.CKKyGoi = new CheckBox();
            this.UpdNamDich = new NumericUpDown();
            this.Label4 = new Label();
            this.updThangDich = new NumericUpDown();
            this.CKCongNo = new CheckBox();
            this.CKSoDuTaiKhoan = new CheckBox();
            this.CKSoDuTonKho = new CheckBox();
            this.CmdCancel = new Button();
            this.CmdOK = new Button();
            this.updNam.BeginInit();
            this.updThang.BeginInit();
            this.GroupBox1.SuspendLayout();
            this.UpdNamDich.BeginInit();
            this.updThangDich.BeginInit();
            this.SuspendLayout();
            Point point = new Point(0x90, 0x2e);
            this.updNam.Location = point;
            decimal num = new decimal(new int[] { 0x9c4, 0, 0, 0 });
            this.updNam.Maximum = num;
            num = new decimal(new int[] { 0x7d0, 0, 0, 0 });
            this.updNam.Minimum = num;
            this.updNam.Name = "updNam";
            Size size = new Size(0x3a, 20);
            this.updNam.Size = size;
            this.updNam.TabIndex = 10;
            num = new decimal(new int[] { 0x7d0, 0, 0, 0 });
            this.updNam.Value = num;
            this.Label1.AutoSize = true;
            point = new Point(0x1b, 0x31);
            this.Label1.Location = point;
            this.Label1.Name = "Label1";
            size = new Size(50, 13);
            this.Label1.Size = size;
            this.Label1.TabIndex = 9;
            this.Label1.Text = "Từ th\x00e1ng";
            point = new Point(0x61, 0x2e);
            this.updThang.Location = point;
            num = new decimal(new int[] { 12, 0, 0, 0 });
            this.updThang.Maximum = num;
            num = new decimal(new int[] { 1, 0, 0, 0 });
            this.updThang.Minimum = num;
            this.updThang.Name = "updThang";
            size = new Size(0x29, 20);
            this.updThang.Size = size;
            this.updThang.TabIndex = 8;
            num = new decimal(new int[] { 1, 0, 0, 0 });
            this.updThang.Value = num;
            this.GroupBox1.BackColor = Color.Transparent;
            this.GroupBox1.Controls.Add(this.CKKyGoi);
            this.GroupBox1.Controls.Add(this.UpdNamDich);
            this.GroupBox1.Controls.Add(this.Label4);
            this.GroupBox1.Controls.Add(this.updThangDich);
            this.GroupBox1.Controls.Add(this.CKCongNo);
            this.GroupBox1.Controls.Add(this.CKSoDuTaiKhoan);
            this.GroupBox1.Controls.Add(this.CKSoDuTonKho);
            this.GroupBox1.Controls.Add(this.updNam);
            this.GroupBox1.Controls.Add(this.Label1);
            this.GroupBox1.Controls.Add(this.updThang);
            point = new Point(4, 6);
            this.GroupBox1.Location = point;
            this.GroupBox1.Name = "GroupBox1";
            size = new Size(0x163, 0xc6);
            this.GroupBox1.Size = size;
            this.GroupBox1.TabIndex = 10;
            this.GroupBox1.TabStop = false;
            this.GroupBox1.Text = "T\x00f9y chọn";
            this.CKKyGoi.AutoSize = true;
            this.CKKyGoi.Checked = true;
            this.CKKyGoi.CheckState = CheckState.Checked;
            point = new Point(0x61, 0xac);
            this.CKKyGoi.Location = point;
            this.CKKyGoi.Name = "CKKyGoi";
            size = new Size(0x6f, 0x11);
            this.CKKyGoi.Size = size;
            this.CKKyGoi.TabIndex = 0x12;
            this.CKKyGoi.Text = "H\x00e0ng k\x00fd gởi đại l\x00fd";
            this.CKKyGoi.UseVisualStyleBackColor = true;
            point = new Point(0x90, 0x48);
            this.UpdNamDich.Location = point;
            num = new decimal(new int[] { 0x9c4, 0, 0, 0 });
            this.UpdNamDich.Maximum = num;
            num = new decimal(new int[] { 0x7d0, 0, 0, 0 });
            this.UpdNamDich.Minimum = num;
            this.UpdNamDich.Name = "UpdNamDich";
            size = new Size(0x3a, 20);
            this.UpdNamDich.Size = size;
            this.UpdNamDich.TabIndex = 0x11;
            num = new decimal(new int[] { 0x7d0, 0, 0, 0 });
            this.UpdNamDich.Value = num;
            this.Label4.AutoSize = true;
            point = new Point(0x1c, 0x4c);
            this.Label4.Location = point;
            this.Label4.Name = "Label4";
            size = new Size(0x3e, 13);
            this.Label4.Size = size;
            this.Label4.TabIndex = 0x10;
            this.Label4.Text = "Sang th\x00e1ng";
            point = new Point(0x61, 0x48);
            this.updThangDich.Location = point;
            num = new decimal(new int[] { 12, 0, 0, 0 });
            this.updThangDich.Maximum = num;
            num = new decimal(new int[] { 1, 0, 0, 0 });
            this.updThangDich.Minimum = num;
            this.updThangDich.Name = "updThangDich";
            size = new Size(0x29, 20);
            this.updThangDich.Size = size;
            this.updThangDich.TabIndex = 15;
            num = new decimal(new int[] { 1, 0, 0, 0 });
            this.updThangDich.Value = num;
            this.CKCongNo.AutoSize = true;
            this.CKCongNo.Checked = true;
            this.CKCongNo.CheckState = CheckState.Checked;
            point = new Point(0x61, 0x95);
            this.CKCongNo.Location = point;
            this.CKCongNo.Name = "CKCongNo";
            size = new Size(0x60, 0x11);
            this.CKCongNo.Size = size;
            this.CKCongNo.TabIndex = 14;
            this.CKCongNo.Text = "Số dư c\x00f4ng nợ";
            this.CKCongNo.UseVisualStyleBackColor = true;
            this.CKSoDuTaiKhoan.AutoSize = true;
            this.CKSoDuTaiKhoan.Checked = true;
            this.CKSoDuTaiKhoan.CheckState = CheckState.Checked;
            point = new Point(0x61, 0x7c);
            this.CKSoDuTaiKhoan.Location = point;
            this.CKSoDuTaiKhoan.Name = "CKSoDuTaiKhoan";
            size = new Size(0x65, 0x11);
            this.CKSoDuTaiKhoan.Size = size;
            this.CKSoDuTaiKhoan.TabIndex = 13;
            this.CKSoDuTaiKhoan.Text = "Số dư t\x00e0i khoản";
            this.CKSoDuTaiKhoan.UseVisualStyleBackColor = true;
            this.CKSoDuTonKho.AutoSize = true;
            this.CKSoDuTonKho.Checked = true;
            this.CKSoDuTonKho.CheckState = CheckState.Checked;
            point = new Point(0x61, 0x62);
            this.CKSoDuTonKho.Location = point;
            this.CKSoDuTonKho.Name = "CKSoDuTonKho";
            size = new Size(120, 0x11);
            this.CKSoDuTonKho.Size = size;
            this.CKSoDuTonKho.TabIndex = 12;
            this.CKSoDuTonKho.Text = "Số dư h\x00e0ng tồn kho";
            this.CKSoDuTonKho.UseVisualStyleBackColor = true;
            this.CmdCancel.DialogResult = DialogResult.Cancel;
            this.CmdCancel.Image = (Image) manager.GetObject("CmdCancel.Image");
            this.CmdCancel.ImageAlign = ContentAlignment.MiddleLeft;
            point = new Point(280, 210);
            this.CmdCancel.Location = point;
            this.CmdCancel.Name = "CmdCancel";
            size = new Size(0x4f, 0x18);
            this.CmdCancel.Size = size;
            this.CmdCancel.TabIndex = 9;
            this.CmdCancel.Text = "&Tho\x00e1t";
            this.CmdCancel.UseVisualStyleBackColor = true;
            this.CmdOK.Image = (Image) manager.GetObject("CmdOK.Image");
            this.CmdOK.ImageAlign = ContentAlignment.MiddleLeft;
            point = new Point(0xc5, 210);
            this.CmdOK.Location = point;
            this.CmdOK.Name = "CmdOK";
            size = new Size(0x4e, 0x18);
            this.CmdOK.Size = size;
            this.CmdOK.TabIndex = 8;
            this.CmdOK.Text = "&Chọn";
            this.CmdOK.UseVisualStyleBackColor = true;
            SizeF ef = new SizeF(6f, 13f);
            this.AutoScaleDimensions = ef;
            this.AutoScaleMode = AutoScaleMode.Font;
            this.BackgroundImage = ACCOUNTING.My.Resources.Resources.background;
            size = new Size(0x16b, 240);
            this.ClientSize = size;
            this.ControlBox = false;
            this.Controls.Add(this.GroupBox1);
            this.Controls.Add(this.CmdCancel);
            this.Controls.Add(this.CmdOK);
            this.FormBorderStyle = FormBorderStyle.FixedDialog;
            this.KeyPreview = true;
            this.Name = "Frm_KetChuyenSoDu";
            this.ShowIcon = false;
            this.ShowInTaskbar = false;
            this.StartPosition = FormStartPosition.CenterScreen;
            this.Tag = "TH-0008";
            this.Text = "KET CHUYEN SO DU";
            this.updNam.EndInit();
            this.updThang.EndInit();
            this.GroupBox1.ResumeLayout(false);
            this.GroupBox1.PerformLayout();
            this.UpdNamDich.EndInit();
            this.updThangDich.EndInit();
            this.ResumeLayout(false);
        }

        public string NamThangSau(string pNamThang)
        {
            string str2 = "";
            string str3 = "";
            str2 = LVYModule.sLeft(pNamThang, 4);
            if (Conversions.ToInteger(LVYModule.sRight(pNamThang, 2)) < 12)
            {
                pNamThang = (Conversions.ToInteger(pNamThang) + 1).ToString();
                return pNamThang;
            }
            str3 = "01";
            pNamThang = LVYModule.sRight("0000" + Conversions.ToString((int) (Conversions.ToInteger(str2) + 1)), 4) + str3;
            return pNamThang;
        }

        internal virtual CheckBox CKCongNo
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CKCongNo;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._CKCongNo = value;
            }
        }

        internal virtual CheckBox CKKyGoi
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CKKyGoi;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._CKKyGoi = value;
            }
        }

        internal virtual CheckBox CKSoDuTaiKhoan
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CKSoDuTaiKhoan;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._CKSoDuTaiKhoan = value;
            }
        }

        internal virtual CheckBox CKSoDuTonKho
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CKSoDuTonKho;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._CKSoDuTonKho = value;
            }
        }

        internal virtual Button CmdCancel
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdCancel;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._CmdCancel = value;
            }
        }

        internal virtual Button CmdOK
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdOK;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdOK_Click);
                if (this._CmdOK != null)
                {
                    this._CmdOK.Click -= handler;
                }
                this._CmdOK = value;
                if (this._CmdOK != null)
                {
                    this._CmdOK.Click += handler;
                }
            }
        }

        internal virtual GroupBox GroupBox1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._GroupBox1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._GroupBox1 = value;
            }
        }

        internal virtual Label Label1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label1 = value;
            }
        }

        internal virtual Label Label4
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label4;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label4 = value;
            }
        }

        internal virtual NumericUpDown updNam
        {
            [DebuggerNonUserCode]
            get
            {
                return this._updNam;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._updNam = value;
            }
        }

        internal virtual NumericUpDown UpdNamDich
        {
            [DebuggerNonUserCode]
            get
            {
                return this._UpdNamDich;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._UpdNamDich = value;
            }
        }

        internal virtual NumericUpDown updThang
        {
            [DebuggerNonUserCode]
            get
            {
                return this._updThang;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._updThang = value;
            }
        }

        internal virtual NumericUpDown updThangDich
        {
            [DebuggerNonUserCode]
            get
            {
                return this._updThangDich;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._updThangDich = value;
            }
        }
    }
}

